#include "SList.h"

void TestSList1()
{
	SListNode* s = NULL;
	SListPushBack(&s, 1);
	SListPushBack(&s, 2);
	SListPushBack(&s, 3);
	SListPushBack(&s, 4);
	SListPushBack(&s, 5);
	SListPushBack(&s, 6);
	SListPrint(s);

	SListPushFront(&s, 1);
	SListPushFront(&s, 2);
	SListPushFront(&s, 3);
	SListPushFront(&s, 4);
	SListPushFront(&s, 5);
	SListPushFront(&s, 6);
	SListPrint(s);

	SListPopBack(&s);
	SListPopBack(&s);
	SListPopBack(&s);
	SListPopBack(&s);
	SListPrint(s);

	SListPopFront(&s);
	SListPopFront(&s);
	SListPrint(s);

	SListNode* p1 = SListFind(s, 2);
	printf("%p\n", p1);
	SListNode* p2 = SListFind(s, 3);
	printf("%p\n", p2);

	//SListInsertAfter()
}

int main()
{
	TestSList1();
	return 0;
}

